
<html>
<head>
<title>Top commentators with avatar</title>

<script type='text/javascript'src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=1.7.1'>
</script> 
<script type="text/javascript" src="http://knowitfrom2.googlecode.com/svn/colorpick/jquery.validationEngine.js"></script>
<script type="text/javascript" src="http://knowitfrom2.googlecode.com/svn/colorpick/colorpicker.js"></script>
<script type="text/javascript" src="http://knowitfrom2.googlecode.com/svn/colorpick/widget.js"></script>
<style type='text/css'>
.colorbox{
	width:25px;
	height:25px;
	display:inline-block;
	background-color:#fff;
	border:1px solid #fff;
	vertical-align:top;
	cursor:pointer;
	
	-webkit-box-shadow: 1px 1px 1px #ccc;
	-moz-box-shadow: 1px 1px 1px #ccc;
	box-shadow: 1px 1px 1px #ccc;
	
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}
.colorpicker {
	width: 356px;
	height: 176px;
	overflow: hidden;
	position: absolute;
	background: url(http://4.bp.blogspot.com/-1b3xvbK6I9k/T090ays1wUI/AAAAAAAACuA/fdGZxO9ofK0/s1600/colorpicker_background.png);
	font-family: Arial, Helvetica, sans-serif;
	display: none;
}
.colorpicker_color {
	width: 150px;
	height: 150px;
	left: 14px;
	top: 13px;
	position: absolute;
	background: #f00;
	overflow: hidden;
	cursor: crosshair;
}
.colorpicker_color div {
	position: absolute;
	top: 0;
	left: 0;
	width: 150px;
	height: 150px;
	background: url(http://1.bp.blogspot.com/-U_ltwPPj1VM/T090fsfKbJI/AAAAAAAACus/U0Qo6jGHj8g/s1600/colorpicker_overlay.png);
}
.colorpicker_color div div {
	position: absolute;
	top: 0;
	left: 0;
	width: 11px;
	height: 11px;
	overflow: hidden;
	background: url(http://1.bp.blogspot.com/-4gx7cd3XGu0/T090jKYL7eI/AAAAAAAACvQ/fkVuClhPR5g/s1600/colorpicker_select.gif);
	margin: -5px 0 0 -5px;
}
.colorpicker_hue {
	position: absolute;
	top: 13px;
	left: 171px;
	width: 35px;
	height: 150px;
	cursor: n-resize;
}
.colorpicker_hue div {
	position: absolute;
	width: 35px;
	height: 9px;
	overflow: hidden;
	background: url(http://1.bp.blogspot.com/-x6edmqooPd0/T090enLieJI/AAAAAAAACuk/1VFvZKrqa5A/s1600/colorpicker_indic.gif) left top;
	margin: -4px 0 0 0;
	left: 0px;
}
.colorpicker_new_color {
	position: absolute;
	width: 60px;
	height: 30px;
	left: 213px;
	top: 13px;
	background: #f00;
}
.colorpicker_current_color {
	position: absolute;
	width: 60px;
	height: 30px;
	left: 283px;
	top: 13px;
	background: #f00;
}
.colorpicker input {
	background-color: transparent;
	border: 1px solid transparent;
	position: absolute;
	font-size: 10px;
	font-family: Arial, Helvetica, sans-serif;
	color: #898989;
	top: 4px;
	right: 11px;
	text-align: right;
	margin: 0;
	padding: 0;
	height: 11px;
}
.colorpicker_hex {
	position: absolute;
	width: 72px;
	height: 22px;
	background: url(http://1.bp.blogspot.com/-dByqnzK_bBc/T090bj3fW8I/AAAAAAAACuI/jl8l36f3LK8/s1600/colorpicker_hex.png) top;
	left: 212px;
	top: 142px;
}
.colorpicker_hex input {
	right: 6px;
}
.colorpicker_field {
	height: 22px;
	width: 62px;
	background-position: top;
	position: absolute;
}
.colorpicker_field span {
	position: absolute;
	width: 12px;
	height: 22px;
	overflow: hidden;
	top: 0;
	right: 0;
	cursor: n-resize;
}
.colorpicker_rgb_r {
	background-image: url(http://4.bp.blogspot.com/-b1fVifvDRfk/T090iH0rR-I/AAAAAAAACvI/SLb-LGxCtWA/s1600/colorpicker_rgb_r.png);
	top: 52px;
	left: 212px;
}
.colorpicker_rgb_g {
	background-image: url(http://2.bp.blogspot.com/-o4WkL6kTUxY/T090hIpg6HI/AAAAAAAACvA/R0rzMtahbXE/s1600/colorpicker_rgb_g.png);
	top: 82px;
	left: 212px;
}
.colorpicker_rgb_b {
	background-image: url(http://2.bp.blogspot.com/-ZiGUCiJ2y2M/T090gWnGmYI/AAAAAAAACu0/yiQuVzXL48c/s1600/colorpicker_rgb_b.png);
	top: 112px;
	left: 212px;
}
.colorpicker_hsb_h {
	background-image: url(http://4.bp.blogspot.com/-iHjzx1VEOak/T090denVLiI/AAAAAAAACuY/M7WE2dLekLo/s1600/colorpicker_hsb_h.png);
	top: 52px;
	left: 282px;
}
.colorpicker_hsb_s {
	background-image: url(http://2.bp.blogspot.com/-OyuvBhXqqLM/T090eG5kqxI/AAAAAAAACuc/9rdHZRJKIGI/s1600/colorpicker_hsb_s.png);
	top: 82px;
	left: 282px;
}
.colorpicker_hsb_b {
	background-image: url(http://4.bp.blogspot.com/-dokqcRT3z_Q/T090chc_txI/AAAAAAAACuM/qiDfrj_TNHY/s1600/colorpicker_hsb_b.png);
	top: 112px;
	left: 282px;
}
.colorpicker_submit {
	position: absolute;
	width: 22px;
	height: 22px;
	background: url(http://1.bp.blogspot.com/-9WyMt28abIs/T090jxyOQdI/AAAAAAAACvU/qtPlv2Upqtc/s1600/colorpicker_submit.png) top;
	left: 322px;
	top: 142px;
	overflow: hidden;
}
.colorpicker_focus {
	background-position: center;
}
.colorpicker_hex.colorpicker_focus {
	background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
	background-position: bottom;
}
.colorpicker_slider {
	background-position: bottom;
}

#widget-wrapper{
   
   width:auto ;
   background-color: #fff;padding:25px;
}
 
body {
   border-width: 0px;
   padding: 0px;
   margin: 0px;
   font-size: 90%;
   background-color: #e7e7de
}

.td1
{
font-size:20px;
width:30%;padding-left:15px;padding-top:5px;padding-bottom:5px;
}

.td2
{width:25%;padding:5px;}
.td3
{bwidth:30%;padding:5px;font-size:13px;color:red}
.colorbox{margin-left:10px;}
</style>
<script type='text/javascript'>
//<!--
function makingdifferentcodegen(){
var numco = document.getElementsByName("numcom")[0].value;
var avtarsize = document.getElementsByName("avsize")[0].value;
var roundav = document.getElementsByName("roundav")[0].value;
var defaultavatar = document.getElementsByName("defaultavatar")[0].value;
var blogurl = document.getElementsByName("blogurl")[0].value;
var avbor = document.getElementsByName("avbor")[0].value;
var comlinkcolo = document.getElementsByName("comlinkcolo")[0].value;
var widget = document.getElementsByName("widget.content")[0];
widget.value = "";
widget.value += "<style type=\"text\/css\">";
widget.value += ".top-commenter-line,.top-commenter-line a, .top-commenter-line .profile-name-link a{";
widget.value += "font-family:, arial, sans-serif;";
widget.value += "color: #"+ comlinkcolo +"; text-decoration: none;font-size: 14px;}";
widget.value += ".top-commenter-line:hover,.top-commenter-line a:hover, .top-commenter-line .profile-name-link a:hover{";
widget.value += "color: #"+ comlinkcolo +"; text-shadow: 0px 1px 1px #"+ comlinkcolo +";";
widget.value += "font-size: 14px; text-decoration: none;}";
widget.value += ".top-commenter-line {margin: 3px 0;}";
widget.value += ".top-commenter-line .profile-name-link {padding-left:0;}";
widget.value += ".top-commenter-avatar {vertical-align:middle;}";
widget.value += "ul.top-commenter {list-style:none;margin:0;padding:0;}";
widget.value += ".top-commenter li{background:none !important;margin:0 0 6px !important;padding:0 0 6px 0 !important;display:block;clear:both;overflow:hidden;list-style:none;}.top-commenter li";
widget.value += ".top-commenter-avatar{ ";
widget.value += "padding:3px;background:#fefefe;-webkit-box-shadow:0 1px 1px #ccc;-moz-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc;float:left;margin:0 6px 0 0;position:relative;overflow:hidden;}";
widget.value += ".top-commenter-avatar{-webkit-border-radius:"+ roundav +"px;-moz-border-radius:"+ roundav +"px;border-radius:"+ roundav +"px;";
widget.value += "border:solid 2px #"+ avbor +";}.top-commenter li img{padding:0px;position:relative;overflow:hidden;display:block;}";
widget.value += ".top-commenter li span{margin-top:4px;color: #666;display: block;font-size: 12px;font-style: italic;line-height: 1.4;}";
widget.value += "<\/style>";
widget.value += "<script type=\"text\/javascript\">";
widget.value += "       var maxTopCommenters  = "+ numco +";";
widget.value += "       var sizeAvatar        = "+ avtarsize +";";
widget.value += "       var urlAnoAvatar      = '"+ defaultavatar +"&s=' + sizeAvatar;";
widget.value += "<\/script>";
widget.value += "<script type=\"text\/javascript\" src=\"http:\/\/knowitfrom2.googlecode.com\/svn\/trunk\/top-commentators.js\"><\/script>";
widget.value += "<script type=\"text\/javascript\" src=\""+ blogurl +"\/feeds\/comments\/default?redirect=false&max-results=200&alt=json-in-script&callback=showTopCommenters\"><\/script>";

document.getElementsByName("go")[0].disabled=false;
}
//-->
</script>
</head>
<body>
	<div id='widget-wrapper'>
<form action="http://www.blogger.com/add-widget" method="post" target="_blank">
<table style='width:100%;' cellspacing='5px';>
<tr>
	<td class='td1'>Widget title:</td><td class='td2'><input class='text-input' type='text' name='widget.title' value='Top Commentators with avatar' size='30'></td><td class='td3'>Title for your widget</td>
</tr>
<tr>
	<td class='td1'>Blog URL</td><td class='td2'><input class='text-input' type='text' name='blogurl' value='http://www.knowitfrom.blogspot.com' size='35'></td><td class='td3'>*Enter URL of your blog</td>
</tr>
<tr>
	<td class='td1'>Number of commentators</td><td class='td2'><input class='text-input' type='text' name='numcom' value='5' size='6'></td><td class='td3'>This will show number of top commentators you wanna display</td>
</tr>
<tr>
	<td class='td1'>Image Size</td><td class='td2'><input class='text-input' type='text' name='avsize' value='60' size='6'></td><td class='td3'>size of the avatar to display</td>
</tr>
<tr>
	<td class='td1'>Border color for image</td><td class='td2'>#<input class='inputcolor text-input' type='text' name='avbor' value='cccccc' size='6'><span class="colorbox"></td><td class='td3'>Helps adding border with color you pick</td>
</tr>
<tr>
	<td class='td1'>Link color</td><td class='td2'>#<input class='inputcolor text-input' type='text' name='comlinkcolo' value='000000' size='6'><span class="colorbox"></td><td class='td3'>Link's color </td>
</tr>
<tr>
	<td class='td1'>Rounded Corners</td><td class='td2'><select class='select-box' id='roundav'  name='roundav'>
<option value='100'>Yes</option>
<option value='0'>No</option> 
</select></td><td class='td3'>Want rounded corners?! pick yes</td>
</tr>
<tr>
	<td class='td1'>Default image Url</td><td class='td2'><input class='text-input' type='text' name='defaultavatar' value='http://www.gravatar.com/avatar/?d=mm' size='35'></td><td class='td3'>when commentator has no image, this helps</td>
</tr>
<tr><td class='td1'></td> <td class='td2'><input style="width:180px; font-weight:bold;font-size:20px; " value="Generate" onclick="javascript:makingdifferentcodegen();" type="button"></td><td class='td3'><input style="width:180px; font-weight:bold;font-size:20px; " disabled="disabled" name="go" value="Add to Blogger" type="submit"><br><textarea name="widget.content" style="display:none;"></textarea><input name="infoUrl" value="http://www.knowitfrom.blogspot.com" type="hidden"></td></tr>
</table>
</form>
</div>
 
</body>
</html>
